package com.crm.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 菜单权限表 DTO - 增强版，含Swagger注解与Lombok @Data
 */
@ApiModel(value = "SysMenuDTO", description = "菜单权限表")
@Data // Lombok 提供的注解，自动生成getter/setter、equals、hashCode、toString方法
public class SysMenuDto implements Serializable {

    @ApiModelProperty(value = "菜单ID", hidden = true) // 隐藏此字段，通常主键ID在响应时不展示
    private Long menuId;

    @ApiModelProperty(value = "菜单名称", required = true)
    private String menuName;

    @ApiModelProperty(value = "父菜单ID")
    private Long parentId;

    @ApiModelProperty(value = "显示顺序")
    private Integer orderNum;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "是否为外链（true是 false否）")
    private Integer isFrame;

    @ApiModelProperty(value = "是否缓存（true缓存 false不缓存）")
    private Integer isCache;

    @ApiModelProperty(value = "菜单类型（M目录 C菜单 F按钮）")
    private String menuType;

    @ApiModelProperty(value = "菜单状态（0显示 1隐藏）")
    private String visible;

    @ApiModelProperty(value = "菜单状态（0正常 1停用）")
    private String status;

    @ApiModelProperty(value = "菜单图标")
    private String icon;
}

